package com.wang.designpattern.responsibilitychain;

import com.wang.designpattern.responsibilitychain.domain.AttendanceClockDO;

import java.util.Map;

/**
 * 考勤抽象处理类
 */
public abstract class AttendanceHandler {

    // 下一个处理环节
    protected AttendanceHandler handler;
    // 名字
    String name;

    public AttendanceHandler(String name) {
        this.name = name;
    }

    // 设置下一个处理环节
    public void setHandler(AttendanceHandler handler) {
        this.handler = handler;
    }

    // 当前处理的方法
    public abstract void processRequest(Map<String, AttendanceClockDO> clockResultDataMap, AttendanceClockDO attendanceClockDO);
}
